package app.framework.freemarker.model;

import freemarker.template.TemplateMethodModel;
import freemarker.template.TemplateModelException;
import jasmine.framework.common.util.I18nUtil;

import java.util.List;

/**
 * @author mh.z
 */
public class CurrentLangMethodModel implements TemplateMethodModel {

    public CurrentLangMethodModel() {
        //
    }

    @Override
    public Object exec(List args) throws TemplateModelException {
        return I18nUtil.getLanguage();
    }

}
